<?php
/**
 * 新闻模型
 * @author qianxun
 *
 */
class pvNewsModel extends MY_Model{
    function pvNewsModel() {
        parent::MY_Model();
        $this->table = 'pvNews';
    }
    /**
     * 包装数据
     * {@inheritDoc}
     * @see MY_Model::packing()
     */
    function packing($list = array()){
        foreach ($list as $k => $v){
            $v = $this->gbkToUtf8($v);
            $list[$k] = $v;
        }
        return $list;
    }
    /**
     * 转换编码
     * @param array $storeData
     * @return multitype:string
     */
    function gbkToUtf8($storeData){
        $data = array();
        foreach ($storeData as $k => $v){
            $data[$k] = gbk2utf8($v);
        }
        return $data;
    }
}